<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>grid布局</title>
    <style>
        .wrapper {
            display: grid;
            grid-template-columns: 100px 100px 100px;
            grid-template-rows: 100px 100px;
        }
        /* .item1 {
             grid-column-start: 1;
            grid-column-end: 4; 
            grid-column: 1 / 4; 
        } */
        .item1 {
            grid-column-start: 1;
            grid-column-end: 3;
        }
        .item3 {
            grid-row-start: 2;
            grid-row-end: 4;
        }
        .item4 {
            grid-column-start: 2;
            grid-column-end: 4;
        }
        .wrapper div:nth-child(1){
            background-color: aliceblue;
        }
        .wrapper div:nth-child(2){
            background-color: aquamarine;
        }
        .wrapper div:nth-child(3){
            background-color: bisque;
        }
        .wrapper div:nth-child(4){
            background-color: coral;
        }
        .wrapper div:nth-child(5){
            background-color:darkorange;
        }
        .wrapper div:nth-child(6){
            background-color:lightgreen;
        }
    </style>
</head>
<body>
    <div class="wrapper">
        <div class="item1">1</div>
        <div class="item2">2</div>
        <div class="item3">3</div>
        <div class="item4">4</div>
        <div class="item5">5</div>
        <div class="item6">6</div>
    </div>
</body>
</html>